Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove file name addition to URL #77

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

yangcao77
Copy link
Collaborator

Signed-off-by: Stephanie [email protected]

What does this PR do?

Remove file name addition to URL, URL is expected to be a file path

What issues does this PR fix or reference?

Fixes devfile/api#398

Is your PR tested? Consider putting some instruction how to test your changes

Updated unit test

Signed-off-by: Stephanie <[email protected]>
Copy link
Member

@maysunfaisal maysunfaisal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

curious, do we have tests with uri not ending in devfile or with devfile.yaml that we can update?

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, yangcao77

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [maysunfaisal,yangcao77]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yangcao77
Copy link
Collaborator Author

This test is without devfile.yaml:

Uri: httpPrefix + uri1,

So at the end of the test, the expected error message is updated to be without appending devfile.yaml

@yangcao77 yangcao77 merged commit 85a331e into devfile:master Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

restrict uri in devfile or URL passed in to library to be a file path
3 participants